from MySQL import Mysql
import pymysql
host='localhost'
user='root'
password='FW249746'
database='my_pymysql'
cusorclass=pymysql.cursors.DictCursor
mysql=Mysql(host,user,password,database,cusorclass)

sql='show databases;'
result=mysql.get_one(sql)
result1=mysql.get_all(sql)
if result:
    print(result)
if result1:
    print(result1)
